package com.zxd.dao;

import com.zxd.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * RoleDao
 * Created by 奕恒 on 2017/2/20 21:47.
 */
public interface RoleDao extends JpaRepository<Role, Integer>, JpaSpecificationExecutor<Role> {

    @Query("select a from Role a where a.status = 0")
    List<Role> findListNoMaster();
}